<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!--如用到jqueryBox必须引入 -->
<jsp:include page="/jqueryInclude.jsp" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title></title>
		<link href="<%=basePath%>/style/style.css" rel="stylesheet">
		<link href="<%=basePath%>/style/global.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="<%=basePath%>/js/global.js"></script>
	</head>
	<body>
		<div class="rightCon" align="center">
			<div class="rightTitle" align="left">
				<h3>
					<s:property value="nav" escape="false" />
				</h3>
			</div>
			<table class="listTable">
				<tr class="listTitle">
					<td width="5%" class="title2">
						序号
					</td>
					<td width="40%" class="title2">
						字典名称
						<!-- VALUE -->
					</td>
					<td width="45%" class="title2">
						备注
						<!-- NOTE -->
					</td>
					<td width="10%" class="title2">
						操作
					</td>
				</tr>
				<s:iterator id="f" value="%{diclist}" status="stuts">
					<tr class="listTr">
						<td>
							<s:property value="#stuts.count" />
						</td>
						<td>
							<a href="secondDic.do?code=<s:property value="#f.code" />"><font color="blue"><s:property value="#f.value" /> </font> </a>
						</td>
						<td>
							<s:property value="#f.note" />
						</td>
						<td>

							<a href="updateDic.do?action=before&dic.id=<s:property value="#f.id"/>"><img src="images/system/edit.gif" alt="修改" />
							</a>

							<a href="javascript:if(confirm('您真的要删除吗?点击确认进行删除！否则请点取消'))window.location='deleteDic.do?dic.id=<s:property value="#f.id"/>&code=<s:property value="#f.pcode"/>';"><img src="images/system/delete.gif" alt="删除" />
							</a>
						</td>
					</tr>
				</s:iterator>
			</table>
			<table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td width="52%" height="38">
						<a href="addDic.do?action=before" class="search button01">添加</a>
						<a onclick="jBox.open('div-jBoxID','div','search1','按条件查询','width=700,height=160,center=true,minimizable=true,resize=false,draggable=true,model=false');" href="javascript://" class="search button01">查询</a>
					</td>
					<td width="48%" align="right">
						<span style="text-align: center">${pageStr}</span>
					</td>
				</tr>
			</table>
		</div>
		<div id="search1" style="display: none;">
			<form method="post" action="">
				<table class="searchTable">
					<tr>
						<td width="40%" align="right" height="30">
							字典值：
						</td>
						<td width="60%" align="left">
							<input type="text" name="dic.value" title="字典值">
						</td>
					</tr>
					<tr>
						<td width="30%" align="center" colspan="4">
							<center>
								<input id="button2" class="buttonSearch" type="submit" value="搜索" />
								&nbsp;&nbsp;&nbsp;&nbsp;
								<input id="button2" class="buttonSearch" type="reset" value="重置" />
							</center>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>